#include<dos.h>
#include<iostream.h>
#include<conio.h>
void main()
{
	int c;
	outport(0x64,0xa8);
	outport(0x60,0xf4);
	outport(0x64,0xae);
	c=(int)inportb(0x61);
	outport(0x64,0xad);
	cout<<c;
	c=(int)getch();
	if(c==27)
	{}
	else
	{
		main();
	}
}